@echo off
echo Stopping and removing existing containers...
docker-compose down

echo Rebuilding services...
docker-compose build

echo Starting Docker Compose with rebuild...
docker-compose up --build -d

echo Collecting static files...
docker-compose exec django-app python manage.py collectstatic --noinput

echo Docker Compose project has been restarted and configured.
echo Static files collected and migrations applied.
pause